
<div class="nav"> 
  <center>
  <div class="nav_center">
	<span class="navright"></span>
    <div class="navleft">
        <b class="nav_lefts">全部分类<span><img width="7" height="4" src="$!webPath/resources/style/system/front/default/images/nav_top.gif"></span></b>
    </div>
    <ul class="navul">
    #set($navs=$!navTools.queryNav(0,-1))
    #foreach($nav in $navs)
    #if($!CommUtil.indexOf("$!nav.url","http://")>=0)
      #set($url="$!nav.url")
    #else
      #set($url="$!webPath/$!{nav.url}")
    #end
    <li><a href="$!url" id="$!nav.id" #if($!nav.new_win==1)target="_blank"#end original_url="$!nav.original_url"><span>$!{nav.title}</span></a></li>
    #end
    </ul>
  </div>
  </center>
</div>

<script>
jQuery(document).ready(function(){
  jQuery(".navul a").each(function(){
    var original_url=jQuery(this).attr("original_url");
	if("$!{current_url}".indexOf(original_url)>=0){
	   jQuery(this).addClass("this");	
	}
  });
});
</script>
